home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / random_number.z / random_number
Encoding:
Text File  |  2002-10-03  |  1.7 KB  |  45 lines

  1. RANDOM_NUMBER(3I)                                     Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      RRAANNDDOOMM__NNUUMMBBEERR - Returns pseudorandom numbers
  6.  
  7. SSYYNNOOPPSSIISS
  8.      CCAALLLL RRAANNDDOOMM__NNUUMMBBEERR (([HHAARRVVEESSTT==]_h_a_r_v_e_s_t)
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, IRIX systems
  12.  
  13.      CF90, MIPSpro 7 Fortran 90
  14.  
  15. SSTTAANNDDAARRDDSS
  16.      Fortran
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.      The RRAANNDDOOMM__NNUUMMBBEERR intrinsic subroutine returns one pseudorandom number
  20.      or an array of pseudorandom numbers from the uniform distribution over
  21.      the range 0 <= _x < 1.  It accepts the following argument:
  22.  
  23.      _h_a_r_v_e_s_t   Must be of type real.  It is an output argument.  It may be
  24.                a scalar or an array variable.  It is set to contain
  25.                pseudorandom numbers from the uniform distribution in the
  26.                interval 0 <= _x < 1.
  27.  
  28.                On UNICOS and UNICOS/mk systems, _h_a_r_v_e_s_t is 64 bits.  On
  29.                IRIX systems, _h_a_r_v_e_s_t is 32 bits.
  30.  
  31.      The name of this intrinsic cannot be passed as an argument.
  32.  
  33. EEXXAAMMPPLLEESS
  34.           REAL  X,  Y(10,10)
  35.           ! Initialize X with a pseudorandom number
  36.           CALL RANDOM_NUMBER(HARVEST=X)
  37.           CALL RANDOM_NUMBER(Y)
  38.           ! X and Y contain uniformly distributed random numbers
  39.  
  40. SSEEEE AALLSSOO
  41.      RRAANNDDOOMM__SSEEEEDD(3I), RRAANNFF(3I)
  42.  
  43.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  44.      man page.
  45.